Skip to content

Skills from GitHub, ranked by stars, author and freshness — 8.6.0 - #21

Merged
foursecondfivefour merged 1 commit into
mainfrom
arena/36a4d756-nerveforge
Dec 2, 2026
Merged

foursecondfivefour merged 1 commit into
mainfrom
arena/36a4d756-nerveforge

Conversation

@foursecondfivefour

Copy link
Copy Markdown
Owner

What this does

The Skills screen stops being limited to the twelve skills that ship here: it searches GitHub, ranks the sources, and installs the one you pick.

The ranking (toolkit/skillrank.py) weighs repository stars (6), the author's standing (4) and freshness (3), plus three rules that each answer a case the user named:

  • Floor is absolute — under 100 stars a repository scores zero however famous its author. A brand-new repository from a prolific account is also what a compromised account looks like.
  • The author lifts, never rescues — the user's exception (unknown author, well-known repository) scores high: 4,000 stars with 3 followers scores 71, above a 200-star repository from a 100k-follower account. The author term adds to a real repository; it never supplies one.
  • A giant repository's fame is damped — 486k stars against 15k followers is the project's fame, and a thousand skills inherit it. Past 20× the following and 10k stars, the repository term loses up to a third, and damping can only lower.

Stars say good, not on-topic. The first live run answered "malware triage" with a REST-API skill from a 500k-star repository at 97/100. The search now reads the file (max 8 per search) and an unrelated file scores zero. Live result after the fix: malware-triage from briiirussell/cybersecurity-skills (542★, pushed 2 days ago), installed, listed, removed — end to end.

Discovery combines GitHub code search (files that mention the words) with repository search (collections that do), inspects at most 8 repositories and caps one repository at 25 skills.

Install re-reads the file rather than trusting the browser, validates the front matter against the Agent Skills rules, and writes <data>/skills/<name>/SKILL.md atomically with a SOURCE record. Outside the package on purpose: pip install --upgrade must not replace an operator's skills. Downloaded skills are listed with source: "downloaded", cannot shadow a shipped skill, and are removed with DELETE /api/skills/downloaded/<name>.

Checks

  • unittest discover → 1841 tests, OK (skipped=1)
  • ruff check src/ tests/ scripts/ clean; check_docs.py 19 pairs; bump_version.py --check and gen_api_doc.py --check clean
  • Live end-to-end run against GitHub (search → rank → install → catalogue → delete)

Note on rate limits

Unauthenticated GitHub allows 60 requests an hour. The search is capped at 8 file reads plus the searches themselves, and a GITHUB_TOKEN in the bridge's environment raises the limits — it is read from the environment only, never written to a config file. A rate limit is reported as such in the panel rather than as an empty result.

`toolkit/skillrank.py` picks one source out of several for the same skill. It
weighs repository stars (6), the author's standing (4) and freshness (3), with
three rules on top: a repository under 100 stars scores zero however famous its
author (a fresh repository from a prolific account is also what a compromised
account looks like); the author lifts a real repository but never rescues one;
and a repository whose star count dwarfs its author's following is damped by up
to a third, because that fame belongs to the project, not to this skill.

Stars say a source is good, not that it is on topic. The first live search for
"malware triage" returned a REST-API skill from a half-million-star repository
at 97/100. So the search now reads the file — at most eight per search, since
each read is a GitHub call — and a file that does not mention the query's
subject scores zero. Words every skill shares are dropped before comparing.

`toolkit/skillsource.py` does the network half: code search for files that
mention the words, repository search for collections that do, at most eight
repositories inspected and 25 skills per repository. `GET
/api/skills/sources`, `POST /api/skills/downloaded` (re-reads the file, checks
its front matter, writes atomically), `GET`/`DELETE /api/skills/downloaded`.
Downloaded skills live in `<data>/skills`, outside the package so an upgrade
does not replace them, and are listed beside the shipped ones.

The Skills screen searches, shows the numbers behind each verdict, and lets a
person install any result rather than only the first.

Version 8.6.0.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@foursecondfivefour
foursecondfivefour force-pushed the arena/36a4d756-nerveforge branch from 97147e1 to 8684180 Compare December 2, 2026 14:26
@foursecondfivefour
foursecondfivefour merged commit 896b951 into main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant